//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Dwight Yoakam','Orpheum Theater - New Orleans','New Orleans, LA','Thursday','5/9/2024','8:00 PM','6090292','Dwight-Yoakam-5-9-2024'],['Big As Texas Music & Food Festival: Thomas Rhett, Dierks Bentley & Billy Strings - 3 Day Pass','Montgomery County Fairgrounds - Conroe','Conroe, TX','Friday','5/10/2024','TBD','6031424','Big-As-Texas-Music---Food-Festival--Thomas-Rhett--Dierks-Bentley---Billy-Strings---3-Day-Pass-5-10-2024'],['Dwight Yoakam','Shreveport Municipal Memorial Auditorium','Shreveport, LA','Friday','5/10/2024','8:00 PM','6088656','Dwight-Yoakam-5-10-2024'],['Big As Texas Music & Food Festival: Billy Strings, Dwight Yoakam & Warren Zeiders (Time: TBD) - Saturday','Montgomery County Fairgrounds - Conroe','Conroe, TX','Saturday','5/11/2024','12:00 PM','6052076','Big-As-Texas-Music---Food-Festival--Billy-Strings--Dwight-Yoakam---Warren-Zeiders--Time--TBD----Saturday-5-11-2024'],['Dwight Yoakam','Mountain Winery','Saratoga, CA','Friday','5/17/2024','7:30 PM','6227699','Dwight-Yoakam-5-17-2024'],['Dwight Yoakam','Silver Legacy Casino','Reno, NV','Saturday','5/18/2024','8:00 PM','6251450','Dwight-Yoakam-5-18-2024'],['Dwight Yoakam','Blue Note Summer Sessions at Meritage Resort','Napa, CA','Sunday','5/19/2024','7:00 PM','6258978','Dwight-Yoakam-5-19-2024'],['Dwight Yoakam & The Mavericks','The Anthem - D.C.','Washington, DC','Friday','5/31/2024','7:00 PM','6303479','Dwight-Yoakam---The-Mavericks-5-31-2024'],['Railbird Music Festival: Noah Kahan, Turnpike Troubadours, Chris Stapleton & Hozier - 2 Day Pass','The Red Mile','Lexington, KY','Saturday','6/1/2024','TBD','6131986','Railbird-Music-Festival--Noah-Kahan--Turnpike-Troubadours--Chris-Stapleton---Hozier---2-Day-Pass-6-1-2024'],['In the Pines Music Festival: Dwight Yoakam','Downtown Bristol - VA','Bristol, VA','Saturday','6/1/2024','2:00 PM','6286179','In-the-Pines-Music-Festival--Dwight-Yoakam-6-1-2024']],'"Dwight Yoakam"','https://www.ticketnetwork.com');